package com.pwt.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;


/**
 * RoleMenu
 *
 * @author auto generated
 * @date 2021-08-31 10:19:49
 */
@Data
@Entity
@Table(name = "[role_menu]")
@Schema(name = "RoleMenu")
@DynamicInsert
@DynamicUpdate
public class RoleMenu {

	/**
	 * menuId
	 * nullable : false
	 * default  : null
	 */
	@Schema(name = "menuId",description = "menuId")
	@Column(name = "menu_id", nullable = true, length = 32)
	private String menuId;

	/**
	 * roleId
	 * nullable : false
	 * default  : null
	 */
	@Schema(name = "roleId",description = "roleId")
	@Column(name = "role_id", nullable = true, length = 32)
	private String roleId;

	@Id
	@GeneratedValue(generator="system_uuid")
	@GenericGenerator(name="system_uuid",strategy="uuid")
	@Column(name = "id")
	@Schema(description = "ID")
	private String id;
}
